package cn.diancan.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Version;

/**
 * 店铺顾客
 * @author Sky
 *
 */
@Entity
public class ShopCustomer extends BaseEntity{
    
 
    
    private String customerName;//姓名
    private String customerPhoneNum;//手机号码
    private Integer customerSex;//性别
    private String customerBrithDay;//生日
    
    private Double totalConsumeMoney;//总消费金额
    private Integer totalScore; //总积分
    private Integer surplusScore; //剩余剩余积分
    
    private Integer memberType;//1.普通    2.vip ShopCustomerMemberType
    
    private String customerReMarks;  //备注
    
    private Integer version;
    
    
    

    @Override
    public void init() {
	this.totalConsumeMoney = 0d;
	this.totalScore =0;
	this.surplusScore =0;
	super.init();
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getCustomerPhoneNum() {
        return customerPhoneNum;
    }

    public void setCustomerPhoneNum(String customerPhoneNum) {
        this.customerPhoneNum = customerPhoneNum;
    }

    public Integer getCustomerSex() {
        return customerSex;
    }

    public void setCustomerSex(Integer customerSex) {
        this.customerSex = customerSex;
    }

    public String getCustomerBrithDay() {
        return customerBrithDay;
    }

    public void setCustomerBrithDay(String customerBrithDay) {
        this.customerBrithDay = customerBrithDay;
    }

    public Double getTotalConsumeMoney() {
        return totalConsumeMoney;
    }

    public void setTotalConsumeMoney(Double totalConsumeMoney) {
        this.totalConsumeMoney = totalConsumeMoney;
    }

    public Integer getTotalScore() {
        return totalScore;
    }

    public void setTotalScore(Integer totalScore) {
        this.totalScore = totalScore;
    }

    public Integer getSurplusScore() {
        return surplusScore;
    }

    public void setSurplusScore(Integer surplusScore) {
        this.surplusScore = surplusScore;
    }
    
    

    public Integer getMemberType() {
        return memberType;
    }

    public void setMemberType(Integer memberType) {
        this.memberType = memberType;
    }

    @Version
    @Column(name = "OPTLOCK", columnDefinition = "int(11) DEFAULT 0")
    public Integer getVersion() {
		return version;
    }
    public void setVersion(Integer version) {
		this.version = version;
    }

    public String getCustomerReMarks() {
        return customerReMarks;
    }

    public void setCustomerReMarks(String customerReMarks) {
        this.customerReMarks = customerReMarks;
    }

   
    
    
    
    
    

}
